import request from '../../request';
import * as apis from '@shared/apis';

export interface IProductCreateParams extends Omit<apis.products.IProduct, 'id' | 'createdAt' | 'updatedAt'> {}

export const post = async (params: IProductCreateParams): Promise<apis.products.IProduct> => {
    const res = await request.post('/products', params);
    return res.data;
}; 